/*-----------------------------------------------------------------------------*/
/* ExternAdmin.java                                                              */
/* external administrator for ecom application                                 */
/* Fabienne Boyer - Didier Donsez may 2006                                     */
/*-----------------------------------------------------------------------------*/
package ecom.client;

import ecom.cart.CartLocal;
import ecom.session.EcomAdminRemote;
import ecom.session.EcomCustomerRemote;
import javax.ejb.EJB;
import javax.transaction.*;
import javax.naming.Context;
import shell.Shell;
//import shell.Shellok;

// RMI administrator for the ecom application.
public class ExternCustomer //extends Shell
{

    int accountId = 0;
    Context initialContext = null;
    UserTransaction utx = null;
    @EJB
    static EcomCustomerRemote ecomCustomerBean;
    @EJB
    static EcomAdminRemote ecomAdminBean;
    @EJB
    static CartLocal cartLocal;
    
    Integer cartId = null;
            
    
    

    public static void main(String[] args) {
        try {

            System.out.println("Begining Client...");
            Shell shellCustomer = new Shell(args, ecomCustomerBean, ecomAdminBean, false, cartLocal);
            shellCustomer.run();
        } catch (Exception e) {
            System.err.println("Client get an exception " + e);
            System.exit(2);
        }
    }
}
